import request from '@/utils/request'

// 查询商品风格列表
export function listProductStyle(query) {
  return request({
    url: '/system/ProductStyle/list',
    method: 'get',
    params: query
  })
}

// 查询商品风格详细
export function getProductStyle(id) {
  return request({
    url: '/system/ProductStyle/' + id,
    method: 'get'
  })
}

// 新增商品风格
export function addProductStyle(data) {
  return request({
    url: '/system/ProductStyle',
    method: 'post',
    data: data
  })
}

// 修改商品风格
export function updateProductStyle(data) {
  return request({
    url: '/system/ProductStyle',
    method: 'put',
    data: data
  })
}

// 删除商品风格
export function delProductStyle(id) {
  return request({
    url: '/system/ProductStyle/' + id,
    method: 'delete'
  })
}
